package com.jsh.erp.api;

import com.jsh.erp.service.log.LogService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/api/logApi")
public class LogApi {

    @Resource
    LogService logService;

    @GetMapping("/insertLog")
    public void insertLog(String moduleName, String content, HttpServletRequest request)throws Exception{
        logService.insertLog(moduleName, content, request);
    }

}
